<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html">
   <h:head>
      <title>#{msgs.title}</title>
   </h:head>
   <h:body>
      <h:form>
         <p>
            #{msgs.correct}
            <h:outputFormat value="#{msgs.score}">
               <f:param value="#{quizBean.score}"/>
            </h:outputFormat>
         </p>
         <p>#{msgs.nextProblem}</p>
         <p>#{quizBean.question}</p>
         <p><h:inputText value="#{quizBean.response}"/></p>
         <p>
            <h:commandButton value="#{msgs.checkAnswer}"
                             action="#{quizBean.answerAction}"/>
         </p>
         <p><h:link outcome="#{quizBean.skipOutcome}" value="Skip">
            <f:param name="q" value="#{quizBean.currentProblem + 1}"/>
         </h:link>
         </p>         
      </h:form>
   </h:body>
</html>